<?php
namespace app\service;

use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\Cache;
use think\Log;
use think\Exception;
use think\Db;
use app\api\controller\Timing;

class SeparateAccounts extends Command
{

    protected function configure()
    {
        $this->setName('separate_accounts');
    }
    protected function execute(Input $input, Output $output)
    {
        $output->writeln('分账定时任务开始：'.date('Y-m-d H:i:s'));
        $timing =  new Timing();
        $timing->separate_accounts();
        $output->writeln('分账定时任务结束：'.date('Y-m-d H:i:s'));
    }
}